package entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Auther: hjk
 * @Date: 2019/6/18 21:27
 * @Description: 返回前端通用对象
 */
@Data
@AllArgsConstructor
public class Result {

    /** 是否成功 */
    private boolean flag;
    /** 返回码 */
    private Integer code;
    /** 返回信息 */
    private String message;
    /** 返回数据 */
    private Object data;

    public Result(){
    }
    public Result(boolean flag,Integer code,String message){
        super();
        this.flag = flag;
        this.code = code;
        this.message = message;
    }

}
